<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>编码生成器 API 文档 - ReDoc</title>
    <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&display=swap" rel="stylesheet">
    <style>
        body {
            margin: 0;
            font-family: 'Montserrat', sans-serif;
        }
        
        .redoc-container {
            height: 100vh;
        }
        
        /* 自定义ReDoc样式 */
        .redoc-wrap {
            --redoc-font-family: 'Montserrat', sans-serif;
        }
    </style>
</head>
<body>
    <div id="redoc-container" class="redoc-container"></div>
    
    <script src="https://cdn.jsdelivr.net/npm/redoc@2.0.0/bundles/redoc.standalone.js"></script>
    <script>
        Redoc.init('/code-generator/v3/api-docs', {
            theme: {
                colors: {
                    primary: {
                        main: '#667eea'
                    },
                    success: {
                        main: '#28a745'
                    },
                    warning: {
                        main: '#ffc107'
                    },
                    error: {
                        main: '#dc3545'
                    }
                },
                typography: {
                    fontSize: '14px',
                    lineHeight: '1.5em',
                    code: {
                        fontSize: '13px',
                        fontFamily: 'Monaco, Consolas, "Liberation Mono", "Courier New", monospace'
                    },
                    headings: {
                        fontFamily: 'Montserrat, sans-serif',
                        fontWeight: '600'
                    }
                },
                sidebar: {
                    backgroundColor: '#f8f9fa',
                    textColor: '#333333',
                    activeTextColor: '#667eea'
                },
                rightPanel: {
                    backgroundColor: '#263238',
                    textColor: '#ffffff'
                }
            },
            scrollYOffset: 60,
            hideDownloadButton: false,
            disableSearch: false,
            expandResponses: 'all',
            jsonSampleExpandLevel: 2,
            hideSingleRequestSampleTab: true,
            menuToggle: true,
            nativeScrollbars: false,
            pathInMiddlePanel: false,
            requiredPropsFirst: true,
            sortPropsAlphabetically: true,
            showExtensions: true,
            hideSchemaPattern: false
        }, document.getElementById('redoc-container'));
    </script>
</body>
</html>